package com.yml.mybatis.gererator.config;

/**
 * 控制器配置
 *
 * @author YML
 * @since 2024-09-26 16:06
 */
public class ControllerConfig {

    private boolean enableGenerateController = false;

    private String modelPackage = "model";

    private String modelFormat = "%sModel";

    private String apiPackage = "api";

    private String apiFormat = "%sApi";

    private String controllerPackage = "controller";

    private String controllerFormat = "%sController";

    public String getModelPackage() {
        return modelPackage;
    }

    public ControllerConfig setModelPackage(String modelPackage) {
        this.modelPackage = modelPackage;
        return this;
    }

    public String getModelFormat() {
        return modelFormat;
    }

    public ControllerConfig setModelFormat(String modelFormat) {
        this.modelFormat = modelFormat;
        return this;
    }

    public String getApiPackage() {
        return apiPackage;
    }

    public ControllerConfig setApiPackage(String apiPackage) {
        this.apiPackage = apiPackage;
        return this;
    }

    public String getApiFormat() {
        return apiFormat;
    }

    public ControllerConfig setApiFormat(String apiFormat) {
        this.apiFormat = apiFormat;
        return this;
    }

    public String getControllerPackage() {
        return controllerPackage;
    }

    public ControllerConfig setControllerPackage(String controllerPackage) {
        this.controllerPackage = controllerPackage;
        return this;
    }

    public String getControllerFormat() {
        return controllerFormat;
    }

    public ControllerConfig setControllerFormat(String controllerFormat) {
        this.controllerFormat = controllerFormat;
        return this;
    }

    public boolean isEnableGenerateController() {
        return enableGenerateController;
    }

    public ControllerConfig setEnableGenerateController(boolean enableGenerateController) {
        this.enableGenerateController = enableGenerateController;
        return this;
    }
}
